package com.oschina;

/**
 * @author zhouyang
 * @Date 2017-08-20 11:42
 * @Description
 * @Version 1.0
 */
public interface SessionManager {

    /**
     * create session
     * @return
     */
    public Session create();

    /**
     * delete session
     * @param id
     * @return
     */
    public boolean delete(String id);

    /**
     * update session
     * @param session
     * @return
     */
    public boolean update(Session session);

    /**
     * get session
     * @param id
     * @return
     */
    public Session get(String id);

}
